﻿using PineLake.Drmwe.Lib.EnumText;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.Lib.ResultMsg
{
    public enum ApiStatusCodeEnum
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        [Text("请求成功!")]
        Success = 200, //请求(或处理)成功
        /// <summary>
        /// 内部请求出错
        /// </summary>
        [Text("内部请求出错!")]
        Error = 500, //内部请求出错
        /// <summary>
        /// 未授权标识
        /// </summary>
        [Text("未授权标识!")]
        Unauthorized = 401,//未授权标识
        /// <summary>
        /// 请求参数不完整或不正确
        /// </summary>
        [Text("参数不完整或不正确!")]
        ParameterError = 400,//请求参数不完整或不正确
        /// <summary>
        /// 请求TOKEN失效
        /// </summary>
        [Text("请求TOKEN失效!")]
        TokenInvalid = 403,//请求TOKEN失效
        /// <summary>
        /// HTTP请求类型不合法
        /// </summary>
        [Text("HTTP请求类型不合法")]
        HttpMehtodError = 405,//HTTP请求类型不合法
        /// <summary>
        /// HTTP请求不合法,请求参数可能被篡改
        /// </summary>
        [Text("HTTP请求不合法,请求参数可能被篡改!")]
        HttpRequestError = 406,//HTTP请求不合法
        /// <summary>
        /// 该URL已经失效
        /// </summary>
        [Text("该URL已经失效")]
        URLExpireError = 407,//该URL已经失效
    }
}
